package com.china.juju.entity;


import java.util.Date;
import javax.persistence.Column;
import javax.persistence.Entity;
import javax.persistence.GeneratedValue;
import javax.persistence.Id;
import javax.persistence.Table;
import javax.persistence.Temporal;
import javax.persistence.TemporalType;
import org.apache.commons.lang3.builder.ToStringBuilder;
import org.hibernate.annotations.GenericGenerator;

@Entity
@Table(name="juju_activitytalk"
    ,catalog="zutuan_prot"
)
public class JujuActivitytalk  implements java.io.Serializable {

    private static final long serialVersionUID = 1L;

    public static final String ENTITY_NAME = "com.china.juju.entity.JujuActivitytalk";
	public static final String TABLE_NAME="juju_activitytalk";

    public static final String PK_Field = "id"; 
    public static final String PK_Method = "getId";  
	
	public static final String P_id = "id"; 
	public static final String P_activityid = "activityid"; 
	public static final String P_talkcontent = "talkcontent"; 
	public static final String P_picpath = "picpath"; 
	public static final String P_createuser = "createuser"; 
	public static final String P_createdate = "createdate"; 
	public static final String P_parentid = "parentid"; 
	public static final String P_talktype = "talktype"; 
	public static final String P_ispublish = "ispublish"; 

     private String id;
     private String activityid;
     private String talkcontent;
     private String picpath;
     private String createuser;
     private Date createdate;
     private String parentid;
     private Integer talktype;
     private Integer ispublish;

    public JujuActivitytalk() {
    }
	
    public JujuActivitytalk(String id) {
        this.id = id;
    }
    public JujuActivitytalk(String id, String activityid, String talkcontent, String picpath, String createuser, Date createdate, String parentid, Integer talktype, Integer ispublish) {
        this.id = id;
        this.activityid = activityid;
        this.talkcontent = talkcontent;
        this.picpath = picpath;
        this.createuser = createuser;
        this.createdate = createdate;
        this.parentid = parentid;
        this.talktype = talktype;
        this.ispublish = ispublish;
    }
   
    @Id 
    @GeneratedValue( generator="paymentableGenerator")  
    @GenericGenerator(name="paymentableGenerator", strategy="uuid")  
    
    @Column(name="ID", unique=true, nullable=false, length=36)
    public String getId() {
        return this.id;
    }
    
    public void setId(String id) {
        this.id = id;
    }
    
    @Column(name="ACTIVITYID", length=36)
    public String getActivityid() {
        return this.activityid;
    }
    
    public void setActivityid(String activityid) {
        this.activityid = activityid;
    }
    
    @Column(name="TALKCONTENT", length=4000)
    public String getTalkcontent() {
        return this.talkcontent;
    }
    
    public void setTalkcontent(String talkcontent) {
        this.talkcontent = talkcontent;
    }
    
    @Column(name="PICPATH", length=1000)
    public String getPicpath() {
        return this.picpath;
    }
    
    public void setPicpath(String picpath) {
        this.picpath = picpath;
    }
    
    @Column(name="CREATEUSER", length=36)
    public String getCreateuser() {
        return this.createuser;
    }
    
    public void setCreateuser(String createuser) {
        this.createuser = createuser;
    }
    @Temporal(TemporalType.TIMESTAMP)
    @Column(name="CREATEDATE", length=19)
    public Date getCreatedate() {
        return this.createdate;
    }
    
    public void setCreatedate(Date createdate) {
        this.createdate = createdate;
    }
    
    @Column(name="PARENTID", length=36)
    public String getParentid() {
        return this.parentid;
    }
    
    public void setParentid(String parentid) {
        this.parentid = parentid;
    }
    
    @Column(name="TALKTYPE")
    public Integer getTalktype() {
        return this.talktype;
    }
    
    public void setTalktype(Integer talktype) {
        this.talktype = talktype;
    }
    
    @Column(name="ispublish")
    public Integer getIspublish() {
        return this.ispublish;
    }
    
    public void setIspublish(Integer ispublish) {
        this.ispublish = ispublish;
    }



    @Override
	public String toString() {
		return ToStringBuilder.reflectionToString(this);
	}
}


